<h1>Comment List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>User</th>
      <th>Date</th>
      <th>Texte</th>
      <th>Is visible</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($commentList as $comment): ?>
    <tr>
      <td><a href="<?php echo url_for('comment/edit?id='.$comment->get('id')) ?>"><?php echo $comment->getid() ?></a></td>
      <td><?php echo $comment->getUser() ?></td>
      <td><?php echo $comment->getdate() ?></td>
      <td><?php echo $comment->gettexte() ?></td>
      <td><?php echo $comment->getis_visible() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<a href="<?php echo url_for('comment/create') ?>">Create</a>
